﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("M_Guid", Name = "idx_M_Guid")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class bs_manage_system_module
{
    [Key]
    public long M_AutoId { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    [StringLength(255)]
    public string M_Code { get; set; }

    /// <summary>
    /// 模块名称
    /// </summary>
    [Required]
    [StringLength(255)]
    public string M_Name { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime M_AddTime { get; set; }

    public Guid M_Guid { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? M_UpdateTime { get; set; }

    /// <summary>
    /// 1启用，0禁用
    /// </summary>
    public int M_Status { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int M_Order { get; set; }
}
